package com.towexin.application.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.towexin.application.system.domain.FileUpload;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface FileUploadService extends IService<FileUpload> {
    String saveFile(MultipartFile file);

    void getFile(String id, HttpServletResponse response, HttpServletRequest request) throws Exception;

    void getImgFile(String id, HttpServletResponse response, HttpServletRequest request) throws Exception;

    void downloadFile(String id, HttpServletResponse response, HttpServletRequest request) throws Exception;

    boolean deleteFile(List<String> ids);
}
